package com.lianxi;

import java.util.LinkedHashSet;

public class LinkedHashSetTest {
    public static void main(String[] args) {
        //按照添加时的顺序
        LinkedHashSet linkedHashSet = new LinkedHashSet();
        linkedHashSet.add("zzz");
        linkedHashSet.add("rrr");
        linkedHashSet.add("aaa");
        linkedHashSet.add("aaa");
        System.out.println(linkedHashSet);
    }
}
